package com.zcxy360.sandtable.domain;

import com.zcxy360.sandtable.domain.Drawing;
import com.zcxy360.sandtable.domain.DrawingExample;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DrawingMapper {
	
//	
	Drawing selectByPrimaryKeyWithExtra(Integer drawingId);
	List<Drawing> listWithExtra(@Param("drawing") Drawing drawing, @Param("key") String key,@Param("orderByClause") String orderByClause,@Param("sign") Integer sign);
	int deleteBatch(int[] drawingIds);
//

	
    long countByExample(DrawingExample example);

    int deleteByExample(DrawingExample example);

    int deleteByPrimaryKey(Integer drawingId);

    int insert(Drawing record);

    int insertSelective(Drawing record);

    List<Drawing> selectByExample(DrawingExample example);

    Drawing selectByPrimaryKey(Integer drawingId);

    int updateByExampleSelective(@Param("record") Drawing record, @Param("example") DrawingExample example);

    int updateByExample(@Param("record") Drawing record, @Param("example") DrawingExample example);

    int updateByPrimaryKeySelective(Drawing record);

    int updateByPrimaryKey(Drawing record);

}